/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ro.sergiu.configmanager.annotations;

/**
 * Dictates the behavior in case of an unreadable file;<br/> If is set on
 * {@link ErrorBehaviorType#LOAD_DEFAULT} then the object will only be
 * instantiated;<br/>
 * If {@link ErrorBehaviorType#THROW_ERROR} an error will be thrown;<br/>
 * By default, errorBehavior is set on {@link ErrorBehaviorType#LOAD_DEFAULT}
 *
 * @author Toporjinschi
 */
public enum ErrorBehaviorType {

    /**
     * In case of an error, the bean will be just instantiated and the error is
     * swallowed
     */
    LOAD_DEFAULT,
    /**
     * In case of an error, the error will be thrown and the bean will not be
     * instantiated
     */
    THROW_ERROR;
}
